############################# Makefile ##########################

all: clean client server

client: util dbs comunication client.o 
	gcc -o H1N1 client.o util.o dbs.o comunication.o -Wall -ansi

server: util dbs country user comunication dados server.o
	gcc -o mDB server.o util.o dbs.o country.o user.o comunication.o dados.o -Wall -ansi

client.o: client.c
	gcc -o client.o -c client.c -Wall -ansi

server.o: server.c
	gcc -o server.o -c server.c -Wall -ansi
		
util:
	gcc -o util.o -c util.c -Wall -ansi

dbs:
	gcc -o dbs.o -c dbs.c -Wall -ansi

country:
	gcc -o country.o -c country.c -Wall -ansi

user:
	gcc -o user.o -c user.c -Wall -ansi
	
comunication:
	gcc -o comunication.o -c comunication.c -Wall -ansi
	
dados:
	gcc -o dados.o -c dados.c -Wall -ansi


clean:
	clear
	rm -rf *.o
	rm -rf client server
